package com.lupus.servlet;

import java.io.IOException;

import javax.servlet.*;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

public final class ServiceFilter implements Filter {
	private FilterConfig config;
	
	public void init(FilterConfig arg0) throws ServletException {
		config = arg0;
	}

	public void doFilter(ServletRequest arg0, ServletResponse arg1, FilterChain arg2) throws IOException, ServletException {
		HttpServletRequest request = (HttpServletRequest)arg0;
		HttpServletResponse response = (HttpServletResponse)arg1;
		String requestURI = request.getRequestURI();
		String[] fileNameArray = config.getInitParameter("UncheckFile").split(",");
		
		arg2.doFilter(arg0,arg1);
	}

	public void destroy() {
	}
}
